/*
 * 创建日期 2009-12-8
 *
 * 成都天和软件公司
 * 电话：028-85425861
 * 传真：028-85425861-8008
 * 邮编：610041 
 * 版权所有
 */
package  org.fantasy.common.grid.report;

/**
 *  功能说明
 * @author: 王文成
 * @version: 1.0
 * @since 2009-12-8
 */
public class LinkCol {

    public String value;

    /**
     * 链表的下一项
     */
    public LinkCol next;

    /**
     * 链表的上一项
     */
    public LinkCol previous;

    public LinkCol getNext() {
        return next;
    }

    public void setNext(LinkCol next) {
        this.next = next;
    }

    public LinkCol getPrevious() {
        return previous;
    }

    public void setPrevious(LinkCol previous) {
        this.previous = previous;
    }

    public String getColName() {
        return value;
    }

    public void setColName(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return value;
    }

    @Override
    public boolean equals(Object obj) {
        
        if( obj == null )
            return false;
        
        if( obj == this )
            return true;
        
        if( obj instanceof LinkCol){
            LinkCol c = (LinkCol)obj;
            return getColName().equals(c.getColName());
        }
        return false;
    }
}
